package com.wingscode.modules.sys.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 区域
 *
 * @author yan
 */
@Data
@TableName("region")
public class RegionEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * ID
	 */
	@TableId
	private Integer id;

	/**
	 * 父级id
	 */
	private Integer pid;

	/**
	 * 名称
	 */
	private String name;

	/**
	 * 排序
	 */
	private Integer sort;

	@TableField(exist = false)
	private List<RegionEntity> childList;

}
